package com.xtx.json;

import java.io.Serializable;

/**
 * @author Chenin
 * @version 2007-11-30
 */
public class JsonScript implements Serializable {
    private static final long serialVersionUID = 2518952876369642146L;

    public static JsonScript newInstance() {
        return new JsonScript();
    }

    public static JsonScript newInstance(String script) {
        return new JsonScript(script);
    }

    private StringBuffer script;

    private JsonScript() {
        this.script = new StringBuffer();
    }

    private JsonScript(String script) {
        this.script = new StringBuffer().append(script);
    }

    public JsonScript append(String script) {
        this.script.append(script);
        return this;
    }

    public String toString() {
        return this.script.toString();
    }
}
